import autoImport from 'unplugin-auto-import/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

export default function createAutoImport() {
    return autoImport({
        imports: [
            'react',
            'react-router-dom'
        ],
        resolvers: [ElementPlusResolver()],
        dts: 'src/auto-import.d.ts',
        eslintrc: {
            enabled: true,
            globalsPropValue: true,
        }
    })
}
